package com.whmskj.xjlhbc.mapper;

import com.whmskj.xjlhbc.domain.Bcsc16SecurityReport;
import com.whmskj.xjlhbc.vo.SecurityReportVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface SecurityReportMapper {
    int insert(Bcsc16SecurityReport entity);
    Bcsc16SecurityReport selectById(@Param("id") Long id);
    List<Bcsc16SecurityReport> listTodayByReporter(@Param("reporter") String reporter);

    /**
     * 部门列表
     * @return
     */
    List<String> listSectorNames();

    List<Bcsc16SecurityReport> listHistoryByReporter(@Param("reporter") String reporter,
                                                     @Param("offset") int offset,
                                                     @Param("limit") int limit);

    int updateById(Bcsc16SecurityReport entity);
    int deleteById(@Param("id") Long id);
}


